package org.dtrd.modules.patient.entity.bean.report;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.archive.entity.po.DtrdEntRdArchiveReverseScheme;

import java.util.Date;

/**
 * @author qr
 * @date 2022/3/30 11:32
 */
@ApiModel("报告服务方案内容")
@Getter
@Setter
public class ReportServiceProgramme {

    @ApiModelProperty("服务名称")
    private String serviceName;

    @ApiModelProperty("服务周期")
    private String servicePeriod;

    @ApiModelProperty("开始日期")
    private String serviceStartDate;
    @JsonIgnore
    private Date startDate;

    @ApiModelProperty("结束日期")
    private String serviceFinishDate;
    @JsonIgnore
    private Date endDate;

    @ApiModelProperty("用药方案")
    private String drugPlan;

    @ApiModelProperty("饮食方案")
    private String dietPlan;

    @ApiModelProperty("运动方案")
    private String sportPlan;

    @ApiModelProperty("生活方式评估")
    private String lifePlan;

    public ReportServiceProgramme parseFromPO(DtrdEntRdArchiveReverseScheme po) {
        this.drugPlan = po.getDrugPlan();
        this.dietPlan = po.getDietPlan();
        this.sportPlan = po.getSportPlan();
        this.lifePlan = po.getLifePlan();
        return this;
    }

}
